function main() {
    //程序入口
    require(["pluginAttach", "knockout"], function (pluginAttach, ko) {
        var tickets = [
            {
                name: "重庆航空",
                price: 188,
            },
            {
                name: "南极航空",
                price: 288,
            },
            {
                name: "马来西亚航空",
                price: 1,
            },
        ];
        var vm = {
            tickets: tickets,
            chosenTicket: ko.observable(),
            resetTicket: function () {
                this.chosenTicket(null);
            },
        };

        ko.applyBindings(vm, document.getElementById("root"));
    });
}
require(["../scripts/require.config"], main);
